#a=[2,9,10,11,15]#j=5

#a=[4,1,3,5,7]#j=5

max=min=a[0]

j=0
for i in a:
    j=j+1
    if(i>max):
        max=i
    elif(i<min):
        min=i
print(j)
print(max)
print(min)
